import http from "../utils/http/service";

// 查询集采项目列表
export const cenPurList = (data): any => {
  return http.post(`/snow-admin/cenPurchas/cenPurList`, data);
};

// 新增集采项目
export const addCenPurchas = (data): any => {
  return http.post(`/snow-admin/cenPurchas/add`, data);
};

// 删除集采项目
export const delCenPurchas = (data): any => {
  return http.post(`/snow-admin/cenPurchas/delete`, data);
};

// 编辑集采项目
export const updateCenPurchas = (data): any => {
  return http.post(`/snow-admin/cenPurchas/update`, data);
};

// 集采项目详情
export const cenPurchasInfo = (data): any => {
  return http.get(`/snow-admin/cenPurchas/info/${data.id}`);
};

// 查询关联项目预算
export const budgetList = (data): any => {
  return http.post(`/snow-admin/projectBudget/budgetList`, data);
};

// 新增关联项目预算
export const addProjectBudget = (data): any => {
  return http.post(`/snow-admin/projectBudget/add`, data);
};

// 删除关联项目预算
export const delProjectBudget = (data): any => {
  return http.post(`/snow-admin/projectBudget/delete`, data);
};

// 编辑关联项目预算
export const updateProjectBudget = (data): any => {
  return http.post(`/snow-admin/projectBudget/update`, data);
};

// 关联项目预算详情
export const projectBudgetInfo = (data): any => {
  return http.get(`/snow-admin/projectBudget/info/${data.id}`);
};

// 统计项目总预算
export const budgetStatistics = (data): any => {
  return http.post(`/snow-admin/projectBudget/budgetStatistics`, data);
};

// 集采项目下拉框列表
export const jcProjectList = (data): any => {
  return http.post(`/snow-admin/projectBudget/jcProjectList`, data);
};
